-
Notifications
You must be signed in to change notification settings - Fork 298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor Types (and use latest barretenberg) #305
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
suyash67
force-pushed
the
sb/refactor-types
branch
from
April 19, 2023 18:08
2a5e1b1
to
380493e
Compare
Looks like the memory of the WASM needs to be bumped |
Yeah I guess that is because I am restarting to use ultraplonk? |
Probably, we see this when switching provers, I guess they have a bunch of static data or something? |
6 tasks
suyash67
force-pushed
the
sb/refactor-types
branch
from
April 21, 2023 14:13
978cd43
to
ec87f4f
Compare
6 tasks
…er fixes. remove any `stdlib::types`. update bb to point to temp aztec3. remove `USE_TURBO`. Include array package. Bump wasm memory to use 30 initial pages. fix abi TS tests. Fix circuit js test. remove stdlib/types from init in public kernel circuit. update abi snapshots. update bb. Increase merkle tree test timeout by 2 sec. Compute empty subtree roots in runtime (doing so in compile time creates issue of empty runtime generator tables) fix. Use lookup-pedersen for hashing nullifier leaves. Fix a merkle tree test. Bump up merkle tree test timeout by 1 more sec. TRY large timeout for merkle tests. Change composer in `mockedKeys.json` to ultra. chore: updated contract json keys increase e2e test timeouts. e2e timeout increase (again). revert test filter in merkle tree ts.
suyash67
force-pushed
the
sb/refactor-types
branch
from
April 25, 2023 18:12
5692c97
to
a695ff7
Compare
suyash67
added a commit
that referenced
this pull request
Apr 26, 2023
[SQUASHED] Update bb, remove stdlib/types/types.hpp and couple of other fixes. remove any `stdlib::types`. update bb to point to temp aztec3. remove `USE_TURBO`. Include array package. Bump wasm memory to use 30 initial pages. fix abi TS tests. Fix circuit js test. remove stdlib/types from init in public kernel circuit. update abi snapshots. update bb. Increase merkle tree test timeout by 2 sec. Compute empty subtree roots in runtime (doing so in compile time creates issue of empty runtime generator tables) fix. Use lookup-pedersen for hashing nullifier leaves. Fix a merkle tree test. Bump up merkle tree test timeout by 1 more sec. TRY large timeout for merkle tests. Change composer in `mockedKeys.json` to ultra. chore: updated contract json keys increase e2e test timeouts. e2e timeout increase (again). revert test filter in merkle tree ts. Fix build post rebase. Use lookup pedersen hash in native types for merkle hashing. update empty L2 block hash hard-coded value. Fix pk native circuit wasm. remove old code. remove comments. remove more logs.
ludamad
added a commit
that referenced
this pull request
Jul 14, 2023
* Split Pedersen Hash & Commitment Gadgets (#95) * [SQUASHED] Pedersen refactor into hash and commitment. Use lookup pedersen for merkle tree, fixed-base pedersen for commitments. --------- Co-authored-by: Suyash Bagad <[email protected]> Port `copy_as_new_witness`. Port `must_imply`. `operator++`. Port changes from `common`. Port `ecc/groups`. * [CPM] add missing dependencies to libbarretenberg.a (#154) --------- * Increase Pedersen Generator indices and subindices. (#169) * Remove a3 specific types. (#252) * Address Luke's Comments on `aztec3 -> master` (#263) * Add must_imply tests. * Added a test for `field_t::copy_as_new_witness` * add test for `conditional_assign` * Added `infinity` test. * Add `add_affine_test`. * Tests for Array Object in `stdlib` (#262) * basic array tests. * Add `composer_type` while hashing/compressing a vkey. * Add `contains_recursive_proof` to Recursive VK (#268) * feat: debug utility for serialization (#290) * feat: enable asan config * `array_push` for Generic Type (#291) * Add Indexed Merkle Tree (#281) * remove ts (consulted with Adam and we're good to go). (#292) * Add cout for verification_key struct (#295) * compute tree (#298) * [SQUASHED] fixing `push_array_to_array` method. (#304) * feat(memory_tree|a3): add sibling path calculations (#301) * feat(memory_tree): frontier paths * fix array and resolve merge conflicts (#305) * Mc/hash vk (#306) * Increase number of sub-generators to 128. * Build a3crypto.wasm (#311) * More Tests on A3 `stdlib` methods (#316) * test: more vk tests to compare circuit/native/vk_data (#310) * Mc/hash vk (#306) * inc num_generators_per_hash_index to 128. (#309) * fix. (#318) * Added test for `compute_tree_native`. (#319) * Install instructions for apt on ubuntu (#312) * Fix address compilation. (#329) --------- Co-authored-by: David Banks <[email protected]> Co-authored-by: Michael Connor <[email protected]> Co-authored-by: dbanks12 <[email protected]> Co-authored-by: Santiago Palladino <[email protected]> Co-authored-by: ludamad <[email protected]> Co-authored-by: Maddiaa <[email protected]> Co-authored-by: Santiago Palladino <[email protected]> Co-authored-by: ludamad <[email protected]> Co-authored-by: cheethas <[email protected]>
codygunton
pushed a commit
that referenced
this pull request
Jan 23, 2024
* Split Pedersen Hash & Commitment Gadgets (#95) * [SQUASHED] Pedersen refactor into hash and commitment. Use lookup pedersen for merkle tree, fixed-base pedersen for commitments. --------- Co-authored-by: Suyash Bagad <[email protected]> Port `copy_as_new_witness`. Port `must_imply`. `operator++`. Port changes from `common`. Port `ecc/groups`. * [CPM] add missing dependencies to libbarretenberg.a (#154) --------- * Increase Pedersen Generator indices and subindices. (#169) * Remove a3 specific types. (#252) * Address Luke's Comments on `aztec3 -> master` (#263) * Add must_imply tests. * Added a test for `field_t::copy_as_new_witness` * add test for `conditional_assign` * Added `infinity` test. * Add `add_affine_test`. * Tests for Array Object in `stdlib` (#262) * basic array tests. * Add `composer_type` while hashing/compressing a vkey. * Add `contains_recursive_proof` to Recursive VK (#268) * feat: debug utility for serialization (#290) * feat: enable asan config * `array_push` for Generic Type (#291) * Add Indexed Merkle Tree (#281) * remove ts (consulted with Adam and we're good to go). (#292) * Add cout for verification_key struct (#295) * compute tree (#298) * [SQUASHED] fixing `push_array_to_array` method. (#304) * feat(memory_tree|a3): add sibling path calculations (#301) * feat(memory_tree): frontier paths * fix array and resolve merge conflicts (#305) * Mc/hash vk (#306) * Increase number of sub-generators to 128. * Build a3crypto.wasm (#311) * More Tests on A3 `stdlib` methods (#316) * test: more vk tests to compare circuit/native/vk_data (#310) * Mc/hash vk (#306) * inc num_generators_per_hash_index to 128. (#309) * fix. (#318) * Added test for `compute_tree_native`. (#319) * Install instructions for apt on ubuntu (#312) * Fix address compilation. (#329) --------- Co-authored-by: David Banks <[email protected]> Co-authored-by: Michael Connor <[email protected]> Co-authored-by: dbanks12 <[email protected]> Co-authored-by: Santiago Palladino <[email protected]> Co-authored-by: ludamad <[email protected]> Co-authored-by: Maddiaa <[email protected]> Co-authored-by: Santiago Palladino <[email protected]> Co-authored-by: ludamad <[email protected]> Co-authored-by: cheethas <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
We no longer have
stdlib/types/types.hpp
in barretenberg. Instead, we intend to declaretypedef
s locally as and when necessary. This PR updates bb submodule to incorporate latest changes and then ensures that we use localtypedef
s instead of global ones. This would allow us to run different parts of circuits infrastructure with different composers.Note that we point to
aztec3-temporary
branch onbarretenberg
(based off the latest master). This is because we still need large number of generators while using Ultraplonk in aztec3.tldr:
aztec3-temporary
branch)Composer = plonk::UltraComposer
, so we're using Ultraplonk in a3.Resolves: AztecProtocol/aztec3-circuits#191
Resolves AztecProtocol/aztec3-circuits#187
Checklist: